package com.demo.Main.FtpUtil;

import it.sauronsoftware.ftp4j.FTPClient;
import java.io.File;


/**
 * @author zxc
 * 此方法上传成功
 *
 */

public class ZxcTwoDemo {

    public static void main(String[] args) {
        // 上传示例
/*
        FTPClient ftpClient = new FTPClient();
        try {
            ftpClient.setCharset("UTF-8");
            ftpClient.setType(FTPClient.TYPE_AUTO);
            ftpClient.connect("110.40.155.147", 21);
            System.out.println("连接成功");
            ftpClient.login("*****", "****");
            System.out.println("登录成功");
            File file = new File("E:\\Note\\project\\file-synchronization-server\\localfile\\server.txt");
            ftpClient.upload(file);
            ftpClient.disconnect(true);
            System.out.println("上传成功");
        } catch (Exception e) {
            System.out.println("上传失败");
        }*/


    }



}
